<!DOCTYPE html>
<html lang="en">
<head>
    <mata> http-equiv="Content-Type" content="text/html; charset=utf-8"</mata>
    <title>元素加载内容</title>
    <style>
        #frame {
            height: 50%;
            width: 100%;
        }
        #txt {
            border: 1px solid #ccc;
            height: 20%;
            color: #000;
        }
    </style>
</head>
<body>
<iframe id="frame" height="50%">

</iframe>
<div id="txt"></div>

<img id="img">

<script type="text/javascript" id="script"></script>
<script type="text/tiscript">
     var root = view.root;
     root.height = function(){
        // 返回元素外高度,参考https://sciter.com/forums/topic/get-elements-height-from-tiscript/
        return root.box(#height,#border)
        //
     }

</script>


</body>
</html>